<%= content_for :title, '网站信息 - 设置' %>

<div class="uk-grid">
  <%= render 'tab_head' %>

  <div class="uk-width-medium-3-4">
    <% if flash[:notice].present? %>
        <div class="uk-alert uk-alert-success"><%= flash[:notice] %></div>
    <% end %>
    <%= form_for @website, url: save_website_admin_settings_path, html: {class: 'uk-form'} do |f| %>
        <fieldset>
          <legend>网站信息</legend>
          <div class="uk-form-row">
            <%= f.text_field :title, placeholder: '网站标题', class: 'uk-form-width-large' %>
          </div>
          <div class="uk-form-row">
            <%= f.text_area :intro, placeholder: '侧栏简介', rows: 5, class: 'uk-form-width-large' %>
          </div>
        </fieldset>
        <div class="uk-form-row">
            <%= f.submit '提交', class: 'uk-button uk-button-large uk-button-primary' %>
        </div>
    <% end %>
  </div>
</div>